package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipInventory;
import cc.comac.mom.bean.EquipInventoryBean;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.util.ResultBean;
@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipInventoryService {
	
	@RequestMapping(value = "/p/cs/EquipInventoryService/saveInventoryAndSpareData",method = RequestMethod.POST)
	public ResultBean saveInventoryAndSpareData (@RequestBody EquipInventoryBean equipInventoryBean);
	
	@RequestMapping(value = "/p/cs/EquipInventoryService/selectBySomeFields",method = RequestMethod.POST)
	public ResultDev selectBySomeFields(@RequestBody EquipInventory equipInventory);
	
	@RequestMapping(value = "/p/cs/EquipInventoryService/batchDelete",method = RequestMethod.POST)
	public ResultBean batchDelete(@RequestBody List<EquipInventory> list);
	
	@RequestMapping(value = "/p/cs/EquipInventoryService/spareInWarehouseUpdateQuantity",method = RequestMethod.POST)
	public ResultBean spareInWarehouseUpdateQuantity(@RequestBody List<EquipInventory> list);

	@RequestMapping(value = "/p/cs/EquipInventoryService/updateInventorySpare",method = RequestMethod.POST)
	public ResultBean updateInventorySpare (@RequestBody EquipInventoryBean equipInventoryBean);
}
